class VideoMo {
  late String title;
  late String desc;
  late int vid;
  late String cover;
  late String url;
  late int view;
  late int favorite;
  late int reply;
  late int duration;
  late String createTime;
  late Owner owner;

  VideoMo({
    required this.title,
    required this.desc,
    required this.vid,
    required this.cover,
    required this.url,
    required this.view,
    required this.favorite,
    required this.reply,
    required this.duration,
    required this.createTime,
    required this.owner,
  });

  VideoMo.fromJson(Map<String, dynamic> json) {
    title = json['title'];
    desc = json['desc'];
    vid = json['vid'];
    cover = json['cover'];
    url = json['url'];
    view = json['view'];
    favorite = json['favorite'];
    reply = json['reply'];
    duration = json['duration'];
    createTime = json['createTime'];
    owner = new Owner.fromJson(json['owner']);
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title'] = this.title;
    data['desc'] = this.desc;
    data['vid'] = this.vid;
    data['cover'] = this.cover;
    data['url'] = this.url;
    data['view'] = this.view;
    data['favorite'] = this.favorite;
    data['reply'] = this.reply;
    data['duration'] = this.duration;
    data['createTime'] = this.createTime;
    data['owner'] = this.owner.toJson();
    return data;
  }
}

class Owner {
  late String name;
  late String face;
  late int fans;

  Owner({
    required this.name,
    required this.face,
    required this.fans,
  });

  Owner.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    face = json['face'];
    fans = json['fans'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['face'] = this.face;
    data['fans'] = this.fans;
    return data;
  }
}
